package com.hainingtong.user.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 记得在 MainApplication 类上方加 如下注解
 * // @ConfigurationPropertiesScan(basePackages = {"com.hainingtong"})
 */
@Data
@Component
@ConfigurationProperties(prefix = "security.jwt")
public class JwtProperties {

    String tokenName;
    String secretKey;
    int expire;
}
